<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@include file="../common/base.jsp"%>
<title>丹九内衣仓管系统主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function pr(_id)
{
    var select_id = parseInt(_id.replace("xx",""));
    for (i=1;i<=8;i++)
    {
    if (i==select_id)
    {
    document.getElementById("xx"+i).className = "x_css";
    }
    else
    {
    document.getElementById("xx"+i).className = "y_css";
    }
    }
    }
</script>

<script language="javascript" type="text/javascript">
function show(num){
 document.getElementById(num).style.display="block";
}
function hidden1(num){
 document.getElementById(num).style.display="none";
}
</script>

<script language="javascript" type="text/javascript">
function r(num){
 document.getElementById(num).style.display="block";
}
function r_1(num){
 document.getElementById(num).style.display="none";
}
</script>

<script language="javascript" type="text/javascript">
    
    function srcchange(id)
    {
    if(id=="hr1")
    {
    	document.getElementById("mainFrame").src="${ctx}/store/toAddGoods.do";
    	document.getElementById("dTitle").style.display="block";
        
    }
    else if(id=="hr2")
    {
    	document.getElementById("mainFrame").src="${ctx}/store/toDeleteGoods.do";
		document.getElementById("dTitle").style.display="block";
    }
    else if(id=="hr3")
    {
    document.getElementById("mainFrame").src="${ctx}/dataShow/selSaleRecords.do";
    document.getElementById("dTitle").style.display="none";
    }
    else if(id=="hr4")
    {
        document.getElementById("mainFrame").src="${ctx}/store/selStockBranchs.do";
        document.getElementById("dTitle").style.display="block";
    }
    else if(id=="hr5")
    {
   
    document.getElementById("mainFrame").src="${ctx}/store/selStockMasters.do";
	document.getElementById("dTitle").style.display="block";
    }
    else if(id=="hr6")
    {
    document.getElementById("mainFrame").src="${ctx}/price/toSetDiscount.do";
	document.getElementById("dTitle").style.display="block";
    }
    else if(id=="hr7")
    {
    
        document.getElementById("mainFrame").src="${ctx}/price/toSetSpecial.do";
        document.getElementById("dTitle").style.display="block";
    }
    else if(id=="hr8")
    {
     document.getElementById("mainFrame").src="Input.html";
     document.getElementById("dTitle").style.display="none";
    }
    else if(id=="hr9")
    {
    document.getElementById("mainFrame").src="Output.html";
    document.getElementById("dTitle").style.display="none";
    }
        else if(id=="hr10")
    {
     document.getElementById("mainFrame").src="${ctx}/store/toAddRole.do";
     document.getElementById("dTitle").style.display="none";
    }
    else if(id=="hr11")
    {
    document.getElementById("mainFrame").src="${ctx}/store/toSetPassword.do";
    document.getElementById("dTitle").style.display="none";
    }

    
    }
</script>
<link rel="stylesheet" type="text/css" href="${ctx}/staticweb/css/index.css">
</head>

<body>
<div style="width: 1430px; height: 100%;">
	<table height="100%" width="1425" border="0" cellpadding="0" cellspacing="0" style="overflow: hidden;">
		<tr>
			<td colspan="2" height="52">
				<div>
					<div id="header">
						<div class="header01">
							<p class="logo">
								<img src="${ctx}/staticweb/images/logo_03.gif">
							</p>
                            <p class="right_02">您好，<span>${user.userName}</span>，欢迎登陆</p>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
        	<td width="190" valign="top" style="background: url(${ctx}/staticweb/images/lift_bj_02.gif) repeat-y;" background="${ctx}/staticweb/images/lift_bj_02.gif ">
        		<div class="left_r1" onmousemove="show(1)" onmouseout="hidden1(1)" id="1">
        			<div class="left_r" onmousemove="show(1)" onmouseout="hidden1(1)">
        				<ul>
        					<li><a onclick="srcchange('hr1');" style="cursor:pointer">入库登记</a></li>
        					<li><a onclick="srcchange('hr2');" style="cursor:pointer">出库登记</a></li>
        				</ul>
        			</div>
        		</div>
                <div class="left_r1" onmousemove="show(2)" onmouseout="hidden1(2)" id="2">
					<div class="left_r" onmousemove="show(2)" onmouseout="hidden1(2)">
						<ul>
							<li><a onclick="srcchange('hr3')" style="cursor:pointer">各分店销售情况</a></li>
							<li><a onclick="srcchange('hr4')" style="cursor:pointer">缺货提醒</a></li>
							<li><a onclick="srcchange('hr5')" style="cursor:pointer">总仓库存</a></li>
						</ul>
					</div>
				</div>
				<div class="left_r1" onmousemove="show(3)" onmouseout="hidden1(3)" id="3">
					<div class="left_r" onmousemove="show(3)" onmouseout="hidden1(3)">
						<ul>
							<li><a onclick="srcchange('hr6');" style="cursor:pointer">折扣设置</a></li>
							<li><a onclick="srcchange('hr7');" style="cursor:pointer">指定价格设置</a></li>
						</ul>
					</div>
				</div>
				<div class="left_r1" onmousemove="show(4)" onmouseout="hidden1(4)" id="4">
					<div class="left_r" onmousemove="show(4)" onmouseout="hidden1(4)">
						<ul>
							<li><a onclick="srcchange('hr8');" style="cursor:pointer">导入各分店报表</a></li>
							<li><a onclick="srcchange('hr9');" style="cursor:pointer">导出仓库报表</a></li>
						</ul>
					</div>
				</div>
				<div class="left_r1" onmousemove="show(5)" onmouseout="hidden1(5)" id="5">
					<div class="left_r" onmousemove="show(5)" onmouseout="hidden1(5)">
						<ul>
							<li><a onclick="srcchange('hr10');" style="cursor:pointer">添加管理员账号</a></li>
							<li><a onclick="srcchange('hr11');" style="cursor:pointer">密码修改</a></li>
						</ul>
					</div>
				</div>
				<div class="side" style="position: absolute;">
					<ul id="nav">
						<li class="y_css" id="xx1" onmouseover="show(1)" onmouseout="hidden1(1)">
							<a style="cursor:pointer"><p class="icon_07">出入库管理</p></a></li>
						<li class="y_css" id="xx2" onmouseover="show(2)" onmouseout="hidden1(2)">
							<a style="cursor:pointer"><p class="icon_11">数据分析</p></a></li>
                        <li class="y_css" id="xx3" onmouseover="show(3)" onmouseout="hidden1(3)">
							<a style="cursor:pointer"><p class="icon_02">零售价管理</p></a></li>
                        <li class="y_css" id="xx4" onmouseover="show(4)" onmouseout="hidden1(4)">
							<a style="cursor:pointer"><p class="icon_03">报表管理</p></a></li>
                        <li class="y_css" id="xx5" onmouseover="show(5)" onmouseout="hidden1(5)">
							<a style="cursor:pointer"><p class="icon_01">用户管理</p></a></li>
				</div>
			</td>
			<td width="1215" valign="top">
				<div id="dTitle" style="float:left; margin-left:30px;">
				</div>
				<div style="text-align: right; margin-right: 15px; float: right">
					<a href="${ctx}/login/logout.do"><img alt="" src="${ctx}/staticweb/images/middil_06.gif"></a>
				</div>
				<iframe frameborder="0" style="margin-top: 15px; height: 631px;" width="1215" id="mainFrame" name="mainFrame" src="${ctx}/dataShow/toShopsSale.do"></iframe>
  			</td>
			<td width="5" valign="top" style="position: relative;" height="93%">
			</td>
		</tr>
	</table>
</div>
</body>
</html>
